package com.gidgabs.modules.api.service;

import com.gidgabs.common.utils.ReturnJson;
import com.gidgabs.dto.TbButlerOrderDto;
import com.gidgabs.modules.entity.TbButlerOrderEntity;

import java.util.List;
import java.util.Map;

/**
 * 跑腿订单表
 *
 * @author lanyonglin
 * @email www.baidu.com
 * @date 2018-07-02 10:07:40
 */
public interface TbButlerOrderService {

    TbButlerOrderEntity queryObject(Integer id);

    List<TbButlerOrderEntity> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    void save(TbButlerOrderEntity butlerOrder);

    void update(TbButlerOrderEntity butlerOrder);

    void delete(Integer id);

    void deleteBatch(Integer[] ids);

    /**
     * 根据状态查询订单列表
     *
     * @param pageSize
     * @param pageNo
     * @param orderStatus
     * @param selectType
     * @return
     */
    ReturnJson<TbButlerOrderDto> selectOrderList(Integer pageSize, Integer pageNo, Integer orderStatus, Integer selectType);

    /**
     * 跑腿订单支付
     *
     * @param orderCode
     * @param money
     * @return
     */
    ReturnJson<String> payOrder(String orderCode, Integer money);
}
